FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2c9c76e.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2c9c76e.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2c9c76e OS_GIT_VERSION=4.10.0-202202160023.p0.g2c9c76e.assembly.stream-2c9c76e SOURCE_DATE_EPOCH=1637579471 SOURCE_GIT_COMMIT=2c9c76e62783073dfd31a3780b3cdea5acdd481b SOURCE_GIT_TAG=v3.11.0-855-g2c9c76e6 SOURCE_GIT_URL=https://github.com/openshift/telemeter 
ENV GOFLAGS="-mod=vendor"
COPY . /go/src/github.com/openshift/telemeter
RUN cd /go/src/github.com/openshift/telemeter && \
    go build ./cmd/telemeter-client && \
    go build ./cmd/telemeter-server && \
    go build ./cmd/authorization-server

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g2c9c76e.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g2c9c76e.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=2c9c76e OS_GIT_VERSION=4.10.0-202202160023.p0.g2c9c76e.assembly.stream-2c9c76e SOURCE_DATE_EPOCH=1637579471 SOURCE_GIT_COMMIT=2c9c76e62783073dfd31a3780b3cdea5acdd481b SOURCE_GIT_TAG=v3.11.0-855-g2c9c76e6 SOURCE_GIT_URL=https://github.com/openshift/telemeter 

COPY --from=0 /go/src/github.com/openshift/telemeter/telemeter-client /usr/bin/
COPY --from=0 /go/src/github.com/openshift/telemeter/telemeter-server /usr/bin/
COPY --from=0 /go/src/github.com/openshift/telemeter/authorization-server /usr/bin/

LABEL \
        io.k8s.display-name="OpenShift Telemeter" \
        io.k8s.description="" \
        io.openshift.tags="openshift,monitoring" \
        summary="" \
        maintainer="OpenShift Monitoring Team <team-monitoring@redhat.com>" \
        name="openshift/ose-telemeter" \
        com.redhat.component="telemeter-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Monitoring" \
        release="202202160023.p0.g2c9c76e.assembly.stream" \
        io.openshift.build.commit.id="2c9c76e62783073dfd31a3780b3cdea5acdd481b" \
        io.openshift.build.source-location="https://github.com/openshift/telemeter" \
        io.openshift.build.commit.url="https://github.com/openshift/telemeter/commit/2c9c76e62783073dfd31a3780b3cdea5acdd481b" \
        version="v4.10.0"

